#generate jar file
jar cvf a.jar *.class a.jpg 
jar cvfm a.jar manifest.mf *.class a.jpg

#add manifest at the same time
jar cfm a.jar manifest.mf *.class

#add later
jar ufm a.jar manifest.mf

#generate executable jar
jar cvfe my.jar com.myApp.MainClass *.class
java -jar my.jar

#check file list included
jar tvf my.jar 

#start rmi service
rmiregistry
